package com.mes.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 招投标表
 * @TableName bid_bidding
 */
public class BidBidding implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 招投标标题
     */
    private String bidTitle;

    /**
     * 招投标内容
     */
    private String bidContent;

    /**
     * 发布时间
     */
    private Date bidPublishDatetime;

    /**
     * 发布者
     */
    private String bidPublisher;

    /**
     * 发布分类  1招标预告 2招标公告 3 中标公告 4企业采购
     */
    private Integer category;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 开始时间
     */
    private Date beginDate;

    /**
     * 结束时间
     */
    private Date endDate;

    /**
     * 状态 待开标 0 资质审核 1 已过期 2 开标结果 3
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 招投标标题
     */
    public String getBidTitle() {
        return bidTitle;
    }

    /**
     * 招投标标题
     */
    public void setBidTitle(String bidTitle) {
        this.bidTitle = bidTitle;
    }

    /**
     * 招投标内容
     */
    public String getBidContent() {
        return bidContent;
    }

    /**
     * 招投标内容
     */
    public void setBidContent(String bidContent) {
        this.bidContent = bidContent;
    }

    /**
     * 发布时间
     */
    public Date getBidPublishDatetime() {
        return bidPublishDatetime;
    }

    /**
     * 发布时间
     */
    public void setBidPublishDatetime(Date bidPublishDatetime) {
        this.bidPublishDatetime = bidPublishDatetime;
    }

    /**
     * 发布者
     */
    public String getBidPublisher() {
        return bidPublisher;
    }

    /**
     * 发布者
     */
    public void setBidPublisher(String bidPublisher) {
        this.bidPublisher = bidPublisher;
    }

    /**
     * 发布分类  1招标预告 2招标公告 3 中标公告 4企业采购
     */
    public Integer getCategory() {
        return category;
    }

    /**
     * 发布分类  1招标预告 2招标公告 3 中标公告 4企业采购
     */
    public void setCategory(Integer category) {
        this.category = category;
    }

    /**
     * 创建者
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建者
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新者
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 更新者
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 开始时间
     */
    public Date getBeginDate() {
        return beginDate;
    }

    /**
     * 开始时间
     */
    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    /**
     * 结束时间
     */
    public Date getEndDate() {
        return endDate;
    }

    /**
     * 结束时间
     */
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    /**
     * 状态 待开标 0 资质审核 1 已过期 2 开标结果 3
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态 待开标 0 资质审核 1 已过期 2 开标结果 3
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BidBidding other = (BidBidding) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBidTitle() == null ? other.getBidTitle() == null : this.getBidTitle().equals(other.getBidTitle()))
            && (this.getBidContent() == null ? other.getBidContent() == null : this.getBidContent().equals(other.getBidContent()))
            && (this.getBidPublishDatetime() == null ? other.getBidPublishDatetime() == null : this.getBidPublishDatetime().equals(other.getBidPublishDatetime()))
            && (this.getBidPublisher() == null ? other.getBidPublisher() == null : this.getBidPublisher().equals(other.getBidPublisher()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getBeginDate() == null ? other.getBeginDate() == null : this.getBeginDate().equals(other.getBeginDate()))
            && (this.getEndDate() == null ? other.getEndDate() == null : this.getEndDate().equals(other.getEndDate()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBidTitle() == null) ? 0 : getBidTitle().hashCode());
        result = prime * result + ((getBidContent() == null) ? 0 : getBidContent().hashCode());
        result = prime * result + ((getBidPublishDatetime() == null) ? 0 : getBidPublishDatetime().hashCode());
        result = prime * result + ((getBidPublisher() == null) ? 0 : getBidPublisher().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getBeginDate() == null) ? 0 : getBeginDate().hashCode());
        result = prime * result + ((getEndDate() == null) ? 0 : getEndDate().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bidTitle=").append(bidTitle);
        sb.append(", bidContent=").append(bidContent);
        sb.append(", bidPublishDatetime=").append(bidPublishDatetime);
        sb.append(", bidPublisher=").append(bidPublisher);
        sb.append(", category=").append(category);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", beginDate=").append(beginDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}